/**
 *
 * Copyright 1991-2010 TEAM International. All rights reserved 
 *
 */
package com.lindenvalley.de.content.response;

import java.util.ArrayList;
import java.util.List;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

/**
 * @author RuslanI
 *
 */
@Root(strict=false, name="r")
public class ResponseRound {
	
	@Attribute(name="rid", required=false)
	private int roundId;
	
	@ElementList(inline=true, required=false)
	private List<ResponseQuestion> questions;

	/**
	 * @param round_id the round_id to set
	 */
	public void setRoundId(int round_id) {
		this.roundId = round_id;
	}

	/**
	 * @return the round_id
	 */
	public int getRoundId() {
		return roundId;
	}

	/**
	 * @param questions the questions to set
	 */
	public void setQuestions(List<ResponseQuestion> questions) {
		this.questions = questions;
	}

	/**
	 * @return the questions
	 */
	public List<ResponseQuestion> getQuestions() {
		return questions;
	}
	
	public void addQuestion(ResponseQuestion question){
		if (questions == null)
			questions = new ArrayList<ResponseQuestion>();
		questions.add(question);
	}
	

}
